<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>CSS样式 溢出overflow</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      img {
        display: block;
      }
      ul {
        list-style-type: none;
      }
      #slide {
        width: 490px;
        height: 170px;
        border: 5px solid gray;
        margin: 50px auto;
        overflow: hidden;
      }
      #content {
        position: relative;
        top: -170px;
      }
    </style>
  </head>
  <body>
    <div id="slide">
      <ul id="content">
        <li>
          <a href=""><img src="./img/adv1.jpg" alt="" /></a>
        </li>
        <li>
          <a href=""><img src="./img/adv2.jpg" alt="" /></a>
        </li>
      </ul>
    </div>
  </body>
</html>
